<?php  
class ControllerCommonEmailSignup extends Controller {
	public function index() {
		$this->load->model('design/layout');
		$this->load->model('catalog/category');
		$this->load->model('catalog/product');
		$this->load->model('catalog/information');
		
		 $this->data['JoinfUs'] = HTTP_SERVER . 'index.php?route=common/email_signup';
             
            if (($this->request->server['REQUEST_METHOD'] == 'POST') && isset($this->request->post['join_us'])) {
             $SearchValue = str_replace(' ', '+', $this->request->post['join_us']);
               $this->redirect(HTTP_SERVER . 'index.php?route=account/register&join_us=' . $SearchValue);
            }
               
		 
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/email_signup.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/common/email_signup.tpl';
		} else {
			$this->template = 'default/template/common/email_signup.tpl';
		}
								
		$this->render();
	}
}
?>